
package me.zhengjie.service;

import me.zhengjie.domain.AppHoliday;
import me.zhengjie.service.dto.AppDocQueryCriteria;
import me.zhengjie.service.dto.AppHolidayDto;
import me.zhengjie.service.dto.AppHolidayQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @website https://el-admin.vip
* @description 服务接口
* @author IQW
* @date 2022-07-18
**/
public interface AppHolidayService {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(AppHolidayQueryCriteria criteria, Pageable pageable);

    Map queryAllApi(AppHolidayQueryCriteria criteria, Pageable pageable);

    Map queryAppHolidayCate();

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<AppHolidayDto>
    */
    List<AppHolidayDto> queryAll(AppHolidayQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param holId ID
     * @return AppHolidayDto
     */
    AppHolidayDto findById(Integer holId);

    /**
    * 创建
    * @param resources /
    * @return AppHolidayDto
    */
    AppHolidayDto create(AppHoliday resources);

    //申请
    Map add(AppHoliday resources);

    //审批
    Map act(AppHoliday resources);

    //取消
    Map cancel(AppHoliday resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(AppHoliday resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(Integer[] ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<AppHolidayDto> all, HttpServletResponse response) throws IOException;
}